//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        SingleLinked singleLinked = new SingleLinked();
        singleLinked.addLast(1);
        singleLinked.addLast(2);
        singleLinked.addLast(3);
        singleLinked.addLast(2);
        singleLinked.addLast(5);
        singleLinked.addLast(1);
        System.out.println(singleLinked.size());
        singleLinked.removeAllKey(2);
        System.out.println(singleLinked.size());
        singleLinked.clear();

    }
}